package com.multi.thread.chapter03.demo02;

public class Test {
	
	public static void main(String[] args) {
		try {
			String lock = new String();
			System.out.println("syn上面");
			synchronized (lock) {
				System.out.println("syn第一行");
				lock.wait();
				System.out.println("wait下面的代码!");
			}
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

}
